package com.kkh.tp;

import java.net.InetAddress;

public class TPCmd {
	public static final int CMD_TERMINATE_PROCESS=-1;
	public static final int CMD_CONNECT=0;
	public static final int CMD_LISTEN = 1;
	public static final int CMD_CLOSE = 2;
	public static final int CMD_WRITE = 3;
	public static final int CMD_ACCEPT_COMPLETE = 4;
	public static final int CMD_BIND = 5;
	public static final int CMD_USER=100;
	
	public boolean isSync;
	
	public TPCmd(int c) {
		cmd = c;
		arg1 = 0;
		arg2 = 0;
		obj = null;
	}
	
	TPCmd(int c, int a1, int a2, Object o) {
		cmd = c;
		arg1 = a1;
		arg2 = a2;
		obj = o;
	}
	
	TPCmd(int c, Object object, Object objectex) {
		cmd = c;
		obj = object;
		objex = objectex;
	}
	
	TPCmd(int c, int p1, int p2, Object object, Object objectex) {
		cmd = c;
		arg1 = p1;
		arg2 = p2;
		obj = object;
		objex = objectex;
	}
	
	public int getCmd() {
		return cmd;
	}
	
	int cmd;
	int arg1;
	int arg2;
	Object obj;
	Object objex;
	
}
